var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Tip = undefined;
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var exp_Tip = /* */function (_cc$Component26) {
  function _ctor() {
    var _this90;
    babel_classCallCheck(this, _ctor);
    _this90 = _callSuper(this, _ctor, arguments);
    _this90.tipLabel = null;
    _this90.ready = true;
    return _this90;
  }
  babel_inherits(_ctor, _cc$Component26);
  return babel_createClass(_ctor, [{
    key: "playTip",
    value: function playTip(e, t) {
      var _this91 = this;
      this.tipLabel.node.color = t;
      this.node.stopAllActions();
      this.ready = false;
      this.tipLabel.string = e;
      this.reset();
      var n = cc.moveBy(.5, 0, 128);
      var o = cc.fadeIn(.5);
      var i = cc.spawn(n, o);
      var s = cc.delayTime(1);
      var _a21 = cc.fadeOut(.3);
      var r = cc.sequence(i, s, _a21);
      this.node.runAction(r);
      this.scheduleOnce(function () {
        _this91.ready = true;
        _this91.node.active = false;
      }, 1.8);
    }
  }, {
    key: "isReady",
    value: function isReady() {
      return this.ready;
    }
  }, {
    key: "reset",
    value: function reset() {
      this.node.setPosition(0, 100);
      this.node.opacity = 255;
      this.node.active = true;
    }
  }]);
}(cc.Component);
cc__decorate([ccp_property(cc.Label)], exp_Tip.prototype, "tipLabel", undefined);
exp_Tip = cc__decorate([ccp_ccclass], exp_Tip);
exports.Tip = exp_Tip;